//
//  LGDeviceSendNumView.m
//  HeartDiseaseManage
//
//  Created by 1234 on 2023/11/9.
//

#import "LGDeviceSendNumberView.h"

@implementation LGDeviceSendNumberView

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self.titleBtn setTitle:@"设备编号" forState:UIControlStateNormal];
        [self.titleBtn setImage:[UIImage imageNamed:@"设备发货-设备编号"] forState:UIControlStateNormal];
        [self addSubview:self.contentTF];
    }
    return self;
}

-(UITextField *)contentTF{
    if(!_contentTF){
        _contentTF = [[UITextField alloc]initWithFrame:CGRectMake(viewPix(12), viewPix(46), Screen_W-viewPix(56), viewPix(36))];
        _contentTF.backgroundColor = [UIColor colorWithString:@"#F7F9FB"];
        _contentTF.tintColor = [UIColor colorWithString:@"#333333"];
        _contentTF.textColor = [UIColor colorWithString:@"#333333"];
        _contentTF.textAlignment = NSTextAlignmentLeft;
        _contentTF.keyboardType = UIKeyboardTypeDefault;
        _contentTF.placeholder = @"请输入设备编号";
        _contentTF.font = LGFont(15);
        _contentTF.cornerRidus = 5;
        _contentTF.leftViewMode = UITextFieldViewModeAlways;
        _contentTF.leftView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, viewPix(8), viewPix(36))];
    }
    return _contentTF;
}

@end
